-
Notifications
You must be signed in to change notification settings - Fork 53
Remove Smaiae extension #622 #640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
The AIA spec describes a minimal implementation of mvip and mvien, which does not carry a significant area penalty. The Smaiae section is removed, and a Smaclic/Ssaclic section "Area impact of AIA features" explains how area can be reduced when needed.
christian-herber-nxp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
christian-herber-nxp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dependencies need to be updated
src/aclic.adoc
Outdated
|
|
||
| == Advanced Core Local Interrupt Controller (Smaclic and Ssaclic) | ||
|
|
||
| The Smaclic and Ssaclic extensions depend on the Smaiae extension. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead, dependence on indirect CSR needs to be added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Smnip section is also stated to have an Smaiae dependency. I have changed that to an Smaclic dependency because the section on State enables refers to an ACLIC bit.
However as written Smnip only really depends on AIA; I'll open an issue to discuss whether it should be an extension in its own right.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should only depend on AIA. The state enable bit is a secondary concern. We will have to see down the road if every extension gets its own state enable bit. But I do not view this bit as only present when Smaclic is present.
Signed-off-by: Christian Herber <[email protected]>
src/aclic.adoc
Outdated
| | Smtp | (x)| (x)| | | | | ||
| | Smaclic | x | | x | | | | ||
| | Ssaclic | | x | | x | x | | ||
| | Smnip | | | | | x | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs the AIA dependency
src/aclic.adoc
Outdated
| in which case a virtual instruction exception is raised | ||
| when in VS or VU mode instead of an illegal instruction exception. | ||
|
|
||
| NOTE: Many AIA features like programmable IPRIO may not be needed in resource constrained systems. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not think this is the right place for this note.
It should be right where the dependency to AIA is introduced.
As described in #622 there is no need for explicit Smaiae and Ssaia extensions because ACLIC extension can be based directly on AIA - there is no need to delete AIA features. AIA provides sufficient scope for area-reduction on resource-constrained systems, e.g. by reducing the number of IPRIO bits (possibly to zero), and by recommending a minimal implementation of mvip.
A note has been added, pointing readers to parts of the AIA spec that assist with area reduction.